import { Prisma } from '@prisma/client';
import { PrismaClient } from '@prisma/client';

// 数据库事务客户端类型
export type TransactionClient = Omit<
  PrismaClient,
  '$connect' | '$disconnect' | '$on' | '$transaction' | '$use'
>;

// Submission 类型
export type Submission = Prisma.SubmissionGetPayload<{
  include: {
    question: true;
    user: {
      select: {
        id: true;
        name: true;
      };
    };
  };
}>;
